package com.yl.auth.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.CuishouBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface CuishouMapper extends BaseMapper<CuishouBean> {
    IPage<CuishouBean> selepage (Page<CuishouBean> page, @Param("cui")CuishouBean cuishouBean);
    CuishouBean getById( @Param("id") Long id);

//    @Select("select l.`name`,ch.bed_no,r.bed_price,r.nurse_price,r.food_price,r.total,c.official_receipts_price_id,c.receivable_price_id from cuishou c\n" +
//            "LEFT JOIN laoren l on c.laoren_id=l.id\n" +
//            "LEFT JOIN chuangwei ch on l.bed_id=ch.id\n" +
//            "LEFT JOIN ruyuanfeiyong r on c.bed_price_id=r.id")
//    IPage<CuishouBean> getAllPage(IPage<CuishouBean> iPage, @Param(Constants.WRAPPER) QueryWrapper<CuishouBean> wrapper);
}
